package org.bot.server.job;

import lombok.Getter;
import lombok.Setter;
import org.quartz.Job;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: 沧月
 * @Date: 2023/12/9 12:03
 * @Description: 任务实体类
 */

@Getter
@Setter
public class JobEntity {

    private String triggerKey;

    private String triggerGroup;

    private String jobKey;

    private String jobGroup;

    private String cron;

    private Map<String, Object> objectMap = new HashMap<>();

    Class<? extends Job> jobClass;


    public JobEntity putData(String key, Object value) {
        this.objectMap.put(key, value);
        return this;
    }
}
